package com.it.a02abstractdemo2;

public class Test {
    public static void main(String[] args) {
        Frog f = new Frog("青蛙",1);
        System.out.println(f.getName()+","+f.getAge());
        f.eat();

        Dog d = new Dog("旺财",2);
        System.out.println(d.getName()+","+d.getAge());
        d.eat();
    }
}
